package com.puti.doctor.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.puti.doctor.domian.DoctorPatientRecord;
import com.puti.doctor.domian.PatientHealth;
import com.puti.doctor.domian.PatientInfo;
import com.puti.doctor.mapper.PatientInfoMapper;
import com.puti.doctor.service.PatientInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PatientInfoServiceImpl implements PatientInfoService {

    @Autowired
    private PatientInfoMapper patientInfoMapper;

    //查询患者-个人信息 患者-个人信息列表
    @Override
    public List<PatientInfo> selectPatientInfoList(PatientInfo patientInfo) {
        return patientInfoMapper.selectPatientInfoList(patientInfo);
    }

    //患者管理-患者就诊纪录列表
    @Override
    public List<DoctorPatientRecord> selectDoctorPatientRecordList(DoctorPatientRecord doctorPatientRecord) {
        return patientInfoMapper.selectDoctorPatientRecordList(doctorPatientRecord);
    }

    //患者诊断报告根据healthPatientId回显
    @Override
    public PatientHealth findPatientHealthByHealthId(Long healthPatientId) {
        return patientInfoMapper.findPatientHealthByHealthId(healthPatientId);
    }

}
